﻿using System.Windows.Controls;

namespace TransformerManager.WPF.OptionItemModule.Views
{
    /// <summary>
    /// Interaction logic for OptionItemDialog
    /// </summary>
    public partial class OptionItemDialog : UserControl
    {
        public OptionItemDialog()
        {
            InitializeComponent();
            
        }

        private void XmlDataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (XmlDataGrid.SelectedItem == null) return;
            XmlDataGrid.ScrollIntoView(XmlDataGrid.SelectedItem, null);
        }
    }
}
